package zheezes.protocol.impl.gbw.afn8c;

import zheezes.protocol.impl.gbw.DataUnit;
import zheezes.protocol.impl.gbw.format.DataForm01;

public class Afn8CUpF1DataUnit extends DataUnit {
	private DataForm01 data = new DataForm01();

	@Override
	public int sizeOfData() {
		return 6;
	}

	@Override
	public int getData(byte[] buf, int offset) {
		return data.getBytes(buf, offset);
	}

	@Override
	public int setData(byte[] buf, int offset, int max) {
		return data.setBytes(buf, offset);
	}

	public DataForm01 getData() {
		return data;
	}
}
